<?php

namespace app\admin\validate;

use think\Validate;

class SBanner extends Validate
{
    protected $rule = [
        'banner_show'=> 'require|number',
        'status'=>["require","in"=>"0,1"],
        'order_num'=>'require|number',
    ];

    protected $message = [
        'banner_show.require'=>'轮播图展示必须',
        'banner_show.number'=>'轮播图展示必须为数字',
        'status.require'=>'状态必须',
        'status.in'=>'状态数值错误',
        'order_num.require'=>'排序必须',
        'order_num.number'=>'排序必须为数字',
    ];
}
